<div class="zs-body" data-ng-init="formInit('gzcgtj', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzcgtj');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">固定资产</a>
            <i class="right-arr"></i>
            <a href="javascript:;">采购统计</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzcgtj') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzcgtj', gzcgtj.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzcgtj')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="唯一编号" ng-model="gzcgtj.queryObject['id']"/>
                </span>-->
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="采购年度" ng-model="gzcgtj.queryObject['scgnd']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="采购月份" ng-model="gzcgtj.queryObject['scgyf']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="采购设备名称" ng-model="gzcgtj.queryObject['scgsbmc']"/>
                </span>
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="采购设备数量" ng-model="gzcgtj.queryObject['dcgsbsl']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="采购费用" ng-model="gzcgtj.queryObject['scgfy']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="采购用途" ng-model="gzcgtj.queryObject['scgyt']"/>
                </span>-->
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="采购部门" ng-model="gzcgtj.queryObject['scgbm']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="采购人" ng-model="gzcgtj.queryObject['scgr']"/>
                </span>
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="联系方式" ng-model="gzcgtj.queryObject['slxfs']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="是否同意采购" ng-model="gzcgtj.queryObject['itycg']"/>
                </span>-->
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('gzcgtj')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzcgtj','allCheckbox');" />
                                    </th>
								<!--	<th>唯一编号</th>-->
									<th>采购年度</th>
									<th>采购月份</th>
									<th>采购设备名称</th>
									<th>采购设备数量</th>
									<th>采购费用</th>
									<th>采购用途</th>
									<th>采购部门</th>
									<th>采购人</th>
									<th>联系方式</th>
									<!--<th>是否同意采购</th>-->
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzcgtj.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzcgtj',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  采购年度 -->
            						<td>
                                        <a ng-click="editRow('gzcgtj',r) && openWindow('edit');">
                                            <label ng-bind="r.scgnd"></label>
                                        </a>
                                   </td>
									<!--  采购月份 -->
            						<td>
                                        <a ng-click="editRow('gzcgtj',r) && openWindow('edit');">
                                            <label ng-bind="r.scgyf"></label>
                                        </a>
                                   </td>
									<!--  采购设备名称 -->
            						<td>
                                        <a ng-click="editRow('gzcgtj',r) && openWindow('edit');">
                                            <label ng-bind="r.scgsbmc"></label>
                                        </a>
                                   </td>
									<!--  采购设备数量 -->
            						<td>
                                        <a ng-click="editRow('gzcgtj',r) && openWindow('edit');">
                                            <label ng-bind="r.dcgsbsl"></label>
                                        </a>
                                   </td>
									<!--  采购费用 -->
            						<td>
                                        <a ng-click="editRow('gzcgtj',r) && openWindow('edit');">
                                            <label ng-bind="r.scgfy"></label>
                                        </a>
                                   </td>
									<!--  采购用途 -->
            						<td>
                                        <a ng-click="editRow('gzcgtj',r) && openWindow('edit');">
                                            <label ng-bind="r.scgyt"></label>
                                        </a>
                                   </td>
									<!--  采购部门 -->
            						<td>
                                        <a ng-click="editRow('gzcgtj',r) && openWindow('edit');">
                                            <label ng-bind="r.scgbm"></label>
                                        </a>
                                   </td>
									<!--  采购人 -->
            						<td>
                                        <a ng-click="editRow('gzcgtj',r) && openWindow('edit');">
                                            <label ng-bind="r.scgr"></label>
                                        </a>
                                   </td>
									<!--  联系方式 -->
            						<td>
                                        <a ng-click="editRow('gzcgtj',r) && openWindow('edit');">
                                            <label ng-bind="r.slxfs"></label>
                                        </a>
                                   </td>
									
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzcgtj'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="采购统计编辑" width='560px' height='286px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					
          					<tr>
                                <td class="text" width="20%">采购年度</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzcgtj.editRow.scgnd" class="zs-input" />
                                </td>
                           
                                <td class="text" width="20%">采购月份</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzcgtj.editRow.scgyf" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">采购设备名称</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzcgtj.editRow.scgsbmc" class="zs-input" />
                                </td>
                           
                                <td class="text" width="20%">采购设备数量</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzcgtj.editRow.dcgsbsl" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">采购费用</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzcgtj.editRow.scgfy" class="zs-input" />
                                </td>
                            
                                <td class="text" width="20%">采购用途</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzcgtj.editRow.scgyt" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">采购部门</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzcgtj.editRow.scgbm" class="zs-input" />
                                </td>
                            
                                <td class="text" width="20%">采购人</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzcgtj.editRow.scgr" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">联系方式</td>
                                <td class="left" width="30%" colspan="3">
                                	<input type="text" ng-model="gzcgtj.editRow.slxfs" class="zs-input" />
                                </td>
                            </tr>
          					
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzcgtj', gzcgtj.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>